<?php

use swap\visitor;

class my_resume_left_helper extends \swap\helper {
	
	public static function run() {
		$action = visitor::get_action_name();
		$controller = visitor::get_controller_name();
		$left_nav_list = array(
			array('name' => '简历管理', 'url' => url('my-resume/index'), 'show' => ($controller === 'resume' && $action === 'index')),
			array('name' => '谁看了简历', 'url' => url('my-resume/looked'), 'show' => ($action === 'looked')),
			array('name' => '求职信管理', 'url' => url('my-letter/index'), 'show' => ($controller === 'letter')),
		);
		self::set('left_nav_list', $left_nav_list);
		
		self::render();
	}
	
}